home *** CD-ROM | disk | FTP | other *** search
- /*
- * rpcInt.h --
- *
- * Internal declarations for the RPC module. This has data
- * structures that are common to both the client and server
- * parts of the RPC system.
- *
- * Copyright 1986 Regents of the University of California
- * All rights reserved.
- *
- *
- * $Header: /cdrom/src/kernel/Cvsroot/kernel/rpc/rpcInt.h,v 9.5 91/09/10 18:42:51 rab Exp $ SPRITE (Berkeley)
- */
-
- #ifndef _RPCINT
- #define _RPCINT
-
- #ifdef KERNEL
- #include <rpc.h>
- #include <rpcPacket.h>
- #include <rpcTypes.h>
- #else
- #include <kernel/rpc.h>
- #include <kernel/rpcPacket.h>
- #include <kernel/rpcTypes.h>
- #endif /* KERNEL */
-
- /*
- * A general On/Off switch set via the Sys_Stats SYS_RPC_ENABLE_SERVICE command.
- */
- extern Boolean rpcServiceEnabled;
-
- /*
- * A boot ID for this host. This is initialized one time when we boot.
- * It is included in the header of out-going messages, and
- * other machines detect that we have re-booted when this changes.
- */
- extern unsigned int rpcBootID;
-
- /*
- * A set of masks used by the client and server dispatcher to see
- * if a fragmented message is complete.
- */
- extern unsigned int rpcCompleteMask[];
-
- extern void RpcScatter _ARGS_((register RpcHdr *rpcHdrPtr, RpcBufferSet *bufferPtr));
-
- /*
- * Byte-swap routines and variables.
- */
- extern Boolean rpcTestByteSwap;
-
- extern Boolean RpcByteSwapInComing _ARGS_((RpcHdr *rpcHdrPtr,
- int packetLength));
- extern int RpcSetTestByteSwap _ARGS_((void));
- extern int RpcUnsetTestByteSwap _ARGS_((void));
- extern void RpcPrintHdr _ARGS_((RpcHdr *rpcHdrPtr));
- extern void RpcByteSwapBuffer _ARGS_((register int *bufferPtr, register int numInts));
- extern void RpcCrashCallBack _ARGS_((int clientID, ClientData data));
- extern void RpcResetNoServers _ARGS_((int value));
- extern void RpcDaemonWait _ARGS_((Timer_QueueElement *queueEntryPtr));
- extern void RpcDaemonWakeup _ARGS_((Timer_Ticks time, ClientData data));
- extern void RpcBufferInit _ARGS_((RpcHdr *rpcHdrPtr, RpcBufferSet *bufferSetPtr, int channel, int serverHint));
-
-
- #endif /* _RPCINT */
-